This sample program shows how to retrieve the disk volume serial number implemented in disk formats from MS-DOS version 4.x to date.
The serial number information resides in the boot sector of the disk at offset 27H to 2AH and is retrieved using DOS Int 25H: Absolute Disk Read. Because VB cannot call DOS Interrupts, MicroHelp MUSCLE is required. The MUSCLE routine "MhDiskReadAbsolute" provides the required functionality.
For more information regarding the serial number reference the MS Knowledgebase Articles Q69223 and Q39893.